﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lib
{
    class Celda : ICell
    {
        IPiece piece;
        Color color;
        public Celda(Color color)
        {
            this.color = color;
        }
        public void AddPiece(IPiece piece)
        {
            this.piece = piece;
        }

        public void RemovePiece()
        {
            this.piece = null;
        }

        public Color GetColor()
        {
            return this.color;
        }

        public bool HasPiece()
        {
            return this.piece != null;
        }

        public IPiece GetPiece()
        {
            return this.piece;
        }
    }
}
